package com.yuand.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yuandong
 * @date 2021/9/10 11:13
 * Jwt配置类
 */
@Component
@ConfigurationProperties(prefix = "jwt")
@Data
public class JwtConfig {

    //过期时间 毫秒
    private long expire;
    //密钥
    private String secret;

    public JwtConfig() {}

    public JwtConfig(long expire, String secret) {
        this.expire = expire;
        this.secret = secret;
    }
}
